package com.huatai.bi.dto.bigScreen;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author xuzy
 * @version 1.0
 */
@Data
public class LinkageAndDowncastAllColumnDTO {

    @ApiModelProperty(notes = "原数据集ID")
    private Long sourceId;

    @ApiModelProperty(notes = "原数据")
    private LinkedHashMap<String,Object> sourceData = new LinkedHashMap();

    @ApiModelProperty("字段映射关系")
    private List<Mapping> maps = new ArrayList<>();

    @Data
    public static class Mapping {
        @ApiModelProperty("源字段")
        private String sourceField;
        @ApiModelProperty("源字段说明")
        private String label;
        @ApiModelProperty("目标字段,key:字段  value:字段说明")
        private Map<String,String> targetField;
    }
}
